

<%@ page import="auction.Bid" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'bid.label', default: 'Bid')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
   
        </div>
        <div class="body col_11 col">
            <h1>Gebot f&uuml;r "${bidInstance?.auction?.heading}" abgeben</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${bidInstance}">
            <div class="errors">
                <g:renderErrors bean="${bidInstance}" as="list" />
            </div>
            </g:hasErrors>
            
            <g:form action="save">
            <fieldset>
            	<div>
            		<g:hiddenField name="auction" value="${bidInstance?.auction?.id}"/>
            	</div>
            	<div class="value ${hasErrors(bean: bidInstance, field: 'bidAmount', 'errors')}">
            		<label for="bidAmount">Gebot</label>
            		<g:textField name="bidAmount" value="${fieldValue(bean: bidInstance, field: 'bidAmount')}"/>
            	</div>
            	<g:submitButton name="Gebot abgeben"/>
            	</fieldset>
            </g:form>
            
            

                    </div>          
  
    </body>
</html>
